package com.tqz.dt.anno;

import com.tqz.dt.config.GlobalTransactionConfiguration;
import com.tqz.dt.postprocessor.TransactionBeanPostProcessor;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * <p>开始事务功能
 *
 * @author tianqingzhao
 * @since 2021/7/7 14:39
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import({TransactionBeanPostProcessor.class, GlobalTransactionConfiguration.class})
public @interface EnableGlobalTransactional {
}
